package com.eascs.admin.o2o.operation.operations;

import org.springframework.stereotype.Component;

import com.eascs.app.context.ConfigContext;
import com.eascs.site.view.button.Button;
import com.eascs.site.view.button.ButtonHelper;

@Component
public class RefinanceOperation extends AfterLoanOperation {

	@Override
	public String getOperation() {
		return "refinance";
	}

	@Override
	public String getTitle() {
		return "续贷";
	}

	@Override
	public String getMenuCode() {
		return "refinance";
	}
	
	@Override
	public String getSql() {
		String sql = super.getSql();
		sql = ConfigContext.getStringValue(sql, sql);
		sql += " and l.wf_type in ('O','HN','YQ','DC')  and l.loan_flg='Y' ";
		return sql;
	}


	@Override
	public Button[] getOperationButtons() {

		return new Button[] { ButtonHelper.createAjaxButton("续贷", "/rloanstart/checkRefinance?loanapplyNo=") };
	}

}
